drawing functions - continued

XgrDrawArc
XgrDrawArcGrid
XgrDrawArcScaled

( grid, color, r, startAngle#, endAngle# )
( grid, color, rGrid, startAngle#, endAngle# )
( grid, color, r#, startAngle#, endAngle# )

These functions draw an arc, its center of curvature at the appropriate drawpoint, which need not be within the grid. 

The arc itself is r pixels, rGrid pixels or r# scaled units from the center of curvature. Drawing begins at startAngle# and ends at endAngle#, both of which are expressed in radians.

Angles increase counterclockwise, and a circle is $$TWOPI radians. Angles are folded into the range 0 to $$TWOPI before drawing.

color = -1 means draw in the current drawing color.

No drawpoint is changed. No color attribute is changed.

XgrDrawBorder
XgrDrawBorderGrid
XgrDrawBorderScaled

( grid, border, back, low, high, x1, y1, x2, y2 )
( grid, border, back, low, high, x1Grid, y1Grid, x2Grid, y2Grid )
( grid, border, back, low, high, x1#, y1#, x2#, y2# )

These functions draw a border at the specified coordinates.

border, back, low, high = -1 means draw with current value.

No drawpoint is changed. No border or color attribute is changed.

XgrDrawBox
XgrDrawBoxGrid
XgrDrawBoxScaled

( grid, color, x1, y1, x2, y2 )
( grid, color, x1Grid, y1Grid, x2Grid, y2Grid )
( grid, color, x1#, y1#, x2#, y2# )

These functions draw a rectangle at the specified coordinates.

color = -1 means draw in the current drawing color.

No drawpoint is changed. No color attribute is changed.

XgrDrawCircle
XgrDrawCircleGrid
XgrDrawCircleScaled

( grid, color, r )
( grid, color, rGrid )
( grid, color, r# )

These functions draw a circle centered at the appropriate drawpoint.

color = -1 means draw in the current drawing color.

No drawpoint is changed. No color attribute is changed.

XgrDrawGridBorder  ( grid, border )

XgrDrawGridBorder() draws the specified border at the current border offsets.

border = -1 means draw with the current border attribute.

No drawpoint or border attribute is changed.

XgrDrawIcon
XgrDrawIconGrid
XgrDrawIconScaled

( grid, icon, x, y )
( grid, icon, xGrid, yGrid )
( grid, icon, x#, y# )

These functions draw icon at the specified coordinates.

color = -1 means draw in the current drawing color.

No drawpoint is changed. No color attribute is changed.

 

XgrDrawLine
XgrDrawLineGrid
XgrDrawLineScaled

( grid, color, x1, y1, x2, y2 )
( grid, color, x1Grid, y1Grid, x2Grid, y2Grid )
( grid, color, x1#, y1#, x2#, y2# )

These functions draw a line between the two specified points. Then the appropriate drawpoint is set to the second point.

color = -1 means draw in the current drawing color.

No color attribute is changed.

XgrDrawLineTo
XgrDrawLineToGrid
XgrDrawLineToScaled

( grid, color, x, y )
( grid, color, xGrid, yGrid )
( grid, color, x#, y# )

These functions draw a line from the appropriate drawpoint to the specified coordinates. Then the appropriate drawpoint is set to the specified coordinates.

color = -1 means draw in the current drawing color.

No color attribute is changed.

XgrDrawLineToDelta
XgrDrawLineToDeltaGrid
XgrDrawLineToDeltaScaled

( grid, color, dx, dy )
( grid, color, dxGrid, dyGrid )
( grid, color, dx#, dy# )

These functions draw a line from the appropriate drawpoint to an endpoint offset from the drawpoint by the specified values. Then the appropriate drawpoint is set to the endpoint.

color = -1 means draw in the current drawing color.

No color attribute is changed.